package com.samebuilding.web.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.samebuilding.domain.ActivityBigtype;
import com.samebuilding.service.ActivityTypeService;

public class AllActivityTypeAction extends Action {

	private ActivityTypeService activityTypeService;
	
	
	
	public ActivityTypeService getActivityTypeService() {
		return activityTypeService;
	}



	public void setActivityTypeService(ActivityTypeService activityTypeService) {
		this.activityTypeService = activityTypeService;
	}



	public ActionForward execute(ActionMapping arg0, ActionForm arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws Exception {
		// TODO Auto-generated method stub
		
		List<ActivityBigtype> list = this.activityTypeService.findAllBigType();
		
		arg2.setAttribute("list", list);
		
		return arg0.findForward("allActivityType");
	}

	
	
}
